<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        require_once 'User.php';
        $error = User::login($_POST['username'], $_POST['password']);
        if ($error > 0) echo "LOGUEADO!!";
        else echo "error: ".$error."<br />";
        ?>
    </body>
</html>
